package app

import (
	"context"
	"github.com/gin-gonic/gin"
)

type Module interface {
	Name() string
	Init(ctx *WebAppContext) error
	Routes(r *gin.RouterGroup)
}

type HealthChecker interface {
	HealthCheck() error
}

type BackgroundWorker interface {
	Start()
	Stop(ctx context.Context) error
}
